<?php

/*
 * ***********************************************************************
  Class Pick_Core_LogsInfo
  ----------------------------------------------------------------
  PICKCOCMS Project
  Company: Pick.vn
  Email: admin@pick.vn
  Last updated: 09/08/2011
 * ***********************************************************************
 */

class Pick_Core_LogsInfo extends Pick_Core_ObjectInfo {

    function Pick_Core_LogsInfo($arrayField = array()) {
        parent::Pick_Core_ObjectInfo();
        $this->setArrayField($arrayField);
        $this->field['ip'] = $this->getIp();
        $this->field['agent'] = $this->getUserAgent();
    }
    function getIp(){
        return $_SERVER['REMOTE_ADDR'];
    }
    function getUserAgent(){
        return $_SERVER['HTTP_USER_AGENT'];
    }
}